using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Repair Version Metadata</para>
    /// <para>Repairs inconsistencies in the versioning system tables of a geodatabase that contains traditional versions.</para>
    /// <para>修复包含传统版本的地理数据库的版本化系统表中的不一致之处。</para>
    /// </summary>    
    [DisplayName("Repair Version Metadata")]
    public class RepairVersionMetadata : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RepairVersionMetadata()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Database Connection</para>
        /// <para>The database connection (.sde file) to the enterprise geodatabase in which versioning system table inconsistencies exist. The connection must be made as the geodatabase administrator.</para>
        /// <para>与企业级地理数据库的数据库连接（.sde 文件），其中存在版本化系统表不一致。必须以地理数据库管理员身份建立连接。</para>
        /// </param>
        /// <param name="_out_log">
        /// <para>Repair Version Metadata Log</para>
        /// <para>The output log file. The log file is an ASCII file containing the results of the repair operation.</para>
        /// <para>输出日志文件。日志文件是包含修复操作结果的 ASCII 文件。</para>
        /// </param>
        public RepairVersionMetadata(object _input_database, object _out_log)
        {
            this._input_database = _input_database;
            this._out_log = _out_log;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Repair Version Metadata";

        public override string CallName => "management.RepairVersionMetadata";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input_database, _out_log, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para>The database connection (.sde file) to the enterprise geodatabase in which versioning system table inconsistencies exist. The connection must be made as the geodatabase administrator.</para>
        /// <para>与企业级地理数据库的数据库连接（.sde 文件），其中存在版本化系统表不一致。必须以地理数据库管理员身份建立连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Repair Version Metadata Log</para>
        /// <para>The output log file. The log file is an ASCII file containing the results of the repair operation.</para>
        /// <para>输出日志文件。日志文件是包含修复操作结果的 ASCII 文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Repair Version Metadata Log")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_log { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public RepairVersionMetadata SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}